<template>
  <div class="title">
    <e-title :title="t" />
    <a-divider type="vertical" class="divider"></a-divider>
    <slot></slot>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import ETitle from '@/components/ETitle.vue'

const props = defineProps({
  title: String
})
const t = ref(props.title)
</script>

<style scoped lang="less">
.title {
  display: flex;
  align-items: center;
  .divider {
    height: 16px;
    background-color: @border-color;
    margin-left: 24px;
    margin-right: 24px;
    margin-top: 4px;
  }
}
</style>
